package com.tricode.ile.training.task.ESAD.one;

/**
 * This application lets the network administrators document their server configurations.
 * There are several types of servers as shown below. Design the code that implements a
 * Swing GUI allowing the user to edit a server object. It must allow the user to change the
 * type of the server. It must use a CardLayout to display the components just right for the
 * type of the server.
 */
public class Task2 {



}

class Server {
    String id;
    String CPUModel;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCPUModel() {
        return CPUModel;
    }

    public void setCPUModel(String CPUModel) {
        this.CPUModel = CPUModel;
    }
}

class DNSServer extends Server {
    String domainName;

    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }
}

class WINSServer extends Server {
    String replicationPartner;
    int replicationInterval;

    public String getReplicationPartner() {
        return replicationPartner;
    }

    public void setReplicationPartner(String replicationPartner) {
        this.replicationPartner = replicationPartner;
    }

    public int getReplicationInterval() {
        return replicationInterval;
    }

    public void setReplicationInterval(int replicationInterval) {
        this.replicationInterval = replicationInterval;
    }
}

class DomainController extends Server {
    boolean remainNT4Compatible;

    public boolean isRemainNT4Compatible() {
        return remainNT4Compatible;
    }

    public void setRemainNT4Compatible(boolean remainNT4Compatible) {
        this.remainNT4Compatible = remainNT4Compatible;
    }
}
